import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HomeComponent } from './home/home.component';
import { NzCarouselModule } from 'ng-zorro-antd/carousel';
import { WelcomeComponent } from './welcome/welcome.component';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
import { NzPopoverModule } from 'ng-zorro-antd/popover';
import { MainComponent } from './home/main/main.component';
import { ArticleComponent } from './home/article/article.component';
import { ArtistComponent } from './home/artist/artist.component';
import { MessageComponent } from './home/message/message.component';
import { NzStepsModule } from 'ng-zorro-antd/steps';
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzGridModule } from 'ng-zorro-antd/grid';
import { NzDividerModule } from 'ng-zorro-antd/divider';
import { NzCardModule } from 'ng-zorro-antd/card';
import { NzImageModule } from 'ng-zorro-antd/image';
import { NzListModule } from 'ng-zorro-antd/list';
import { ArticleClassComponent } from './home/article/article-class/article-class.component';
import { NzPaginationModule } from 'ng-zorro-antd/pagination';
registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    HomeComponent,
    WelcomeComponent,
    MainComponent,
    ArticleComponent,
    ArtistComponent,
    MessageComponent,
    ArticleClassComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzCarouselModule,
    NzIconModule,
    NzAvatarModule,
    NzPopoverModule,
    NzStepsModule,
    NzButtonModule,
    NzGridModule,
    NzDividerModule,
    NzCardModule,
    NzImageModule,
    NzListModule,
    NzPaginationModule
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent]
})
export class AppModule { }
